﻿using System.Collections.Generic;
using NExt.Core.Model.Base;

namespace NExt
{
    public class CycleButton: CycleButton<CycleButtonEvents>
    {
    }

    public abstract class CycleButton<TEvents> : SplitButton<TEvents>
        where TEvents : CycleButtonEvents, new()
    {
        protected CycleButton()
        {
            items = new List<object>();
        }

        public IScript changeHandler { get; set; }
        public IList<object> items { get; set; }
        public string prependText { get; set; }
        public bool? showText { get; set; }
    }

    public class CycleButtonEvents : SplitButtonEvents
    {
        public IScript change { get; set; }
    }
}
